package com.diy.sigmund.diycommon.test.controller.other;

import com.diy.sigmund.diycommon.entity.ResultMsg;
import com.diy.sigmund.diycommon.test.entity.TestAspectImpl;
import com.netflix.zuul.exception.ZuulException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ylm-sigmund
 * @since 2021/12/7 11:05
 */
@RestController
public class PointcutMethodAspectController {

    @Autowired
    private TestAspectImpl testAspectImpl;

    @PostMapping("a")
    public ResultMsg a() throws ZuulException {
        // testAspectImpl.handle();
        testAspectImpl.handle1();
        return ResultMsg.success();
    }

}
